package com.example.demo.controller;

import com.example.demo.service.HelloTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    private HelloTest helloTest;

    @RequestMapping("hello")
    public String say() {
        return "Hello World!";
    }

    @RequestMapping("byebye")
    public String byebye() {
        return "byebye!";
    }

    @RequestMapping("nihao")
    public String nihao() {
        return "nihao!";
    }

    @RequestMapping("jgittest3")
    public String jgittest3() {
        return "jgittest3!";
    }

    @RequestMapping("jgittest1")
    public String jgittest1() {
        return "jgittest1!";
    }

    @RequestMapping("jgittest2")
    public String jgittest2() {
        return "jgittest2!";
    }

    @RequestMapping("jgittest4")
    public String jgittest4() {
        return "jgittest4!";
    }

    @RequestMapping("jgittest5")
    public void jgittest5() {
        helloTest.test1();
    }


}
